export function priceFormat(val){
  let res = val * 100
  let resStr = res.toString()
  let _left = resStr.slice(0,resStr.length - 2) ? resStr.slice(0,resStr.length- 2) : '0'
  let _right = resStr.length < 2 ? '0' + resStr.slice(resStr.length-2,resStr.length) : resStr.slice(resStr.length-2,resStr.length)
  return `<span>￥</span><span>${_left}.</span><span>${_right}</span>`
}

export function getToken(){
  return localStorage.getItem('token')
}

export function getLocalStorage(key){
  return localStorage.getItem(key)
}